<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login</title>

<link href="css/login-box.css" rel="stylesheet" type="text/css" />

</head>

<body onload="verificaErro();">

	<script type="text/javascript">
		function processKey(e, form) {
			if (null == e)
				e = window.event;
			if (e.keyCode == 13) {
				form.submit();
			}
		}

		function verificaErro() {
			var QueryParameters = (function() {
				var result = {};

				if (window.location.search) {
					// split up the query string and store in an associative array
					var params = window.location.search.slice(1).split("&");
					for ( var i = 0; i < params.length; i++) {
						var tmp = params[i].split("=");
						result[tmp[0]] = unescape(tmp[1]);
					}
				}

				return result;
			}());

			if (QueryParameters.error == '1')
				alert('Login incorreto ou senha incorreta. Digite Novamente');

		}
	</script>


	<div style="" align="center">



		<div id="login-box">
			<h1 align="center">Digite seu login e senha</h1>
			<form action="j_spring_security_check" method="post">


				<div id="login-box-name" style="margin-top: 20px;">Login:</div>
				<div id="login-box-field" style="margin-top: 20px;">
					<input name="j_username" class="form-login" value="" size="30"
						maxlength="2048" />
				</div>
				<div id="login-box-name">Senha:</div>
				<div id="login-box-field">
					<input name="j_password" type="password" class="form-login"
						value="" size="30" maxlength="2048"
						onkeypress="processKey(event,this.form)" />
				</div>

				<img src="imagens/login-btn.png" width="100" height="42"
					style="margin-left: 90px; cursor: hand; cursor: pointer;"
					onclick="btSubmit.click();"></img> <input id="btSubmit"
					type="submit" style="display: none" onmouseover=""></input>
			</form>
			<br /> <br />







		</div>

	</div>













</body>
</html>
